/**
 * @file Build weixin mini program build config
 * @author ican<1173944134@qq.com>
 */

'use strict';

const merge = require('okam-build').merge;

module.exports = merge({}, require('./base.config'), {
  output: {
    dir: 'wx_dist',
    depDir: 'src/common'
  },

  // polyfill: [
  //   'async',
  //   'promise'
  // ],
  //
  // localPolyfill: [
  //   'async',
  //   'promise'
  // ],

  dev: {
    processors: {
      postcss: {
        options: {
          plugins: {
            'postcss-url': {
              url: 'inline'
            }
          }
        }
      }
    }
  },
  prod: {
    processors: {
      postcss: {
        options: {
          plugins: {
            'postcss-url': {
              url: 'inline'
            }
          }
        }
      }
    }
  }
});
